package cn.onlineoedering.user.service.impl;

import org.junit.Test;

import cn.onlineoedering.user.entity.GeneralUser;

public class UserserviceImplTest {
	UserserviceImpl impl =new UserserviceImpl();

	@Test
	public void testSave() {
		GeneralUser generalUser=new GeneralUser(1,"zhangsan","1234","DS","SD","18501369543","403434305","450328198905012712","DS");
		impl.save(generalUser);
	}

	@Test
	public void testQueryAll() {
		for (GeneralUser user : impl.queryAll()) {
			System.out.println(user);
		}
	}

	@Test
	public void testDelete() {
		impl.delete(6);
	}

	@Test
	public void testUpdate() {
		GeneralUser generalUser=new GeneralUser(1,"zhangsan","1234","DS","SD","18501369543","403434305","450328198905012712","DS");
		impl.update(generalUser);
	}
	
	@Test
	public void testQueryByName() {
		System.out.println(impl.queryByName("zhangsan"));
	}

}
